﻿using System;
using System.Linq;
using System.Web.UI;
using BluePortal.Medias.Core;

namespace BluePortal.QuikStart
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BCVideo video = new BCVideo();
                vlTop5.VideosList = video.FindTopRating(User.Identity.Name, 5);
                vlTopView.VideosList = video.FindTopView(User.Identity.Name, 5);
                vlLastUpload.VideosList = video.FindLastUpload(User.Identity.Name, 5);
                vlTopChannel.VideosList = video.FindTopContributor(User.Identity.Name, 5);

                BCTag tag = new BCTag();
                Cloud1.DataSource = tag.FindAllForTagCloud();
                Cloud1.DataBind();

                BCChannel channel = new BCChannel();
                VideoChannels1.ChannelsList = channel.FindTopPopularWithMedia(User.Identity.Name, 3);
            }
        }       
    }
}

